home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 130 / 130.d81 / b.games of ls (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  5KB  |  192 lines

  1. 100 poke53280,0:poke53281,0:print"[147]"
  2. 130 :
  3. 140 poke55,0:poke56,64:clr:a$=""
  4. 142 dv=peek(186):ifdv<8thendv=8
  5. 143 dim r$(11),c(11),an$(13,13)
  6. 145 gosub60000
  7. 155 def fnd(i)=20-(len(an$(x,i))/2)
  8. 160 sys57812"unpacker.89",dv,0:poke780,0:poke781,0:poke782,201:sys65493
  9. 170 sys57812"package.o",dv,0:poke780,0:poke781,80:poke782,195:sys65493
  10. 180 sys57812"corsair.shp",dv,0:poke780,0:poke781,0:poke782,64:sys65493
  11. 190 poke251,64:poke252,224:poke253,204:sys51456
  12. 195 poke252,224:poke253,204:sys51459
  13. 200 ip=50000:unpack=51456:hgr=51459
  14. 210 ps=50006:ba=50009
  15. 220 open2,dv,2,"games text,p,r"
  16. 222 j=1:k=0:fori=0to1:sysip,2,40:i=st
  17. 224 ifa$="*"thenj=j+1:k=0:goto228
  18. 226 k=k+1:an$(j,k)=a$
  19. 228 next:close2
  20. 230 readnp
  21. 240 forx=1tonp:readr$(x),c(x)
  22. 250 next
  23. 260 syshgr
  24. 270 forx=1tonp
  25. 280 gosub1810
  26. 290 sys57812r$(x),dv,0:poke780,0:poke781,0:poke782,64:sys65493
  27. 310 gosub1910:ifa$="q"ora$="[209]"thengosub1250
  28. 312 gosub2000
  29. 320 e(x)=peek(53281)
  30. 340 kk=0:poke198,0
  31. 355 ifz3=0then360
  32. 357 z4=z4+1:z4=z4and15
  33. 358 poke53281,z4
  34. 360 kk=kk+1:geta$:ifa$=""andkk<800then355
  35. 370 ifa$="q"ora$="[209]"thengosub1250
  36. 380 ifa$="s"ora$="[211]"then 470
  37. 390 ifa$<>chr$(133)then410
  38. 400 z1=z1+1:z1=z1and15
  39. 405 poke53280,z1:goto340
  40. 410 ifa$<>chr$(134)then416
  41. 412 z2=z2+1:z2=z2and15
  42. 415 poke53281,z2:goto340
  43. 416 ifa$<>chr$(135)then420
  44. 417 z3=1-z3:ifz3=0thenpoke53281,e(x)
  45. 419 goto340
  46. 420 syshgr:print"[147]":poke198,0:next x
  47. 430 goto270
  48. 440 :
  49. 450 rem save koala pic
  50. 460 :
  51. 470 sys hgr
  52. 480 poke53280,0:poke53281,0
  53. 490 print"[147][154]":poke214,11:print
  54. 500 print"   [211]ave this unpacked picture? (y[154]/n[154])":poke198,0
  55. 510 geta$:ifa$<>"y"anda$<>"n"then510
  56. 520 ifa$="y"then560
  57. 530 goto1110
  58. 550 :
  59. 560 print"[147][154]":poke214,9:print
  60. 570 print" [201]nsert save disk and enter a filename."
  61. 580 :
  62. 590 print"       [206]ame : ---------------[145][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][193][146]pic ";
  63. 600 ln%=10:sp$="                "
  64. 610 gosub690:ifnm$=""then1110
  65. 620 nm$=left$(chr$(129)+"pic "+nm$+sp$,15)
  66. 650 goto820
  67. 680 rem --- input routine ---
  68. 690 nm$="":x%=0:c%=peek(646)
  69. 700 print"[152][164][157]";:poke646,c%
  70. 710 geta$:ifa$=""then710
  71. 720 a%=asc(a$)
  72. 730 ifa%=20andx%thenx%=x%-1:nm$=left$(nm$,len(nm$)-1):print" [157][157]";:goto700
  73. 740 ifa%=20then710
  74. 750 ifa%=13thenprint" ":return
  75. 760 ifx%=ln%then710
  76. 770 ifa$<" "ora$>"z"anda$<"[193]"ora$>"[218]"ora%=34then710
  77. 780 nm$=nm$+a$:print""a$;:x%=x%+1:goto700
  78. 790 :
  79. 800 rem -- check for 'file exists' --
  80. 810 :
  81. 820 open15,dv,15,"r0:"+nm$+"="+nm$:input#15,er,er$:close15
  82. 830 ifer<>62thengosub1160:goto1110
  83. 840 :
  84. 850 rem ---      save pic       ---
  85. 860 :
  86. 920 gosub2000:nm$=nm$+",p,w"
  87. 930 sysps,nm$:syshgr
  88. 950 :
  89. 960 rem --- check for errors ---
  90. 970 :
  91. 980 open15,dv,15:input#15,er,er$,y$,z$:close15
  92. 990 iferthengosub1160:goto490
  93. 1000 :
  94. 1010 rem --    everything ok    ---
  95. 1020 :
  96. 1030 poke53280,0:poke53281,0
  97. 1040 print"[147][154]":poke214,7:print
  98. 1050 print"             [211]aving complete."
  99. 1060 print"   [201]f necessary, put the disk in"
  100. 1070 print"     the drive and press [211][208][193][195][197][154]."
  101. 1080 geta$:ifa$<>" "then1080
  102. 1090 open15,dv,15,"r0:package.o=package.o":input#15,er:close15
  103. 1100 ifer<>63 then 1040
  104. 1110 syshgr:goto420
  105. 1120 :
  106. 1130 :
  107. 1140 :
  108. 1150 rem ---   print dos error msg ---
  109. 1160 :
  110. 1170 poke53280,.:poke53281,.:print"[147]        [129] [196] [201] [211] [203]   [197] [210] [210] [207] [210] !
  111. 1180 [151]214,10:[153]
  112. 1190 a$[178]"print#valrror #"[170][196](er)[170]"print#,"[170]er$
  113. 1200 x%[178]22[171][195](a$)[173]2:[153][163]x%);a$
  114. 1210 [151]214,21:[153]
  115. 1220 [153]"print#        (NULL)ress (NULL)(NULL)atnlenvalprint# to continue."
  116. 1230 [161]a$:[139]a$[179][177]" "[167]1230
  117. 1240 [142]
  118. 1250 o[178][194](53270)[175]16
  119. 1255 [139]o[167][158]51459
  120. 1260 [151]53281,0:[151]53280,0
  121. 1270 [153]"loadcont  atnre you sure you want to quit? (ycont/ncont)"
  122. 1280 [151]198,0:[146]198,1:[161]ag$
  123. 1290 [139]ag$[178]"y"[176]ag$[178]"(NULL)"[167]1330
  124. 1295 [139]o[167][158]51459
  125. 1300 [142]
  126. 1320 [143] quit
  127. 1330 [137]40000
  128. 1380 [143] data <title>,<border color>
  129. 1390 [131] 7
  130. 1400 [131] splat.shp,0
  131. 1410 [131] rana rescue.shp,0
  132. 1420 [131] bowman.shp,0
  133. 1430 [131] blipblaster.shp,0
  134. 1440 [131] thrusterball.shp,0
  135. 1450 [131] wizard duel.shp,0
  136. 1460 [131] game of gods.shp,0
  137. 1500 :
  138. 1770 [153]"";
  139. 1800 :
  140. 1810 [151]53281,5:[151]53280,5
  141. 1820 [153]"loadstoportantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantan^"
  142. 1830 [129]qx[178]1[164]13
  143. 1840 [153]"(NULL)"[163]38)"(NULL)":[130]
  144. 1850 [153]"/tantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantanexp"
  145. 1860 [129]lx[178]217[164]217[170]26:[151]lx,([194](lx)[176]128):[130]
  146. 1870 [153]"stop"
  147. 1872 [129]i[178]1[164]2:[153][163][165]d(i))an$(x,i):[130]:[153]""
  148. 1880 [129]i[178]3[164]12:[139]an$(x,i)[178]""[167]1886
  149. 1882 [153][163][165]d(i))an$(x,i)
  150. 1886 [130]
  151. 1900 [142]
  152. 1910 kk[178]0
  153. 1915 [151]214,15:[153]:[153]"stop     (NULL)hile the slide is showing..."
  154. 1916 [153]"      asc1 sys- changes border color"
  155. 1917 [153]"      asc3 sys- changes background color"
  156. 1918 [153]"      asc5 sys- toggles light show"
  157. 1919 [153]"       (NULL) sys- takes you to (NULL)atn(NULL)val routine"
  158. 1920 [153]"       (NULL) sys- quits"
  159. 1925 [151]214,23:[153]
  160. 1930 [153]"stop(NULL)ress (NULL) to quit - atnny other to continueon"
  161. 1940 kk[178]kk[170]1:[161]a$:[139]a$[179][177]""[176]kk[177]1000[167][142]
  162. 1950 [137]1940
  163. 1980 :
  164. 1990 :
  165. 2000 [153]"load";:[139]fh[167][151]254,0:[158]ba:[137]2040
  166. 2020 [151]251,64:[151]252,224:[151]253,204
  167. 2030 [158]un
  168. 2040 [151]53280,c(x):[151]252,224:[151]253,204:[158]hgr:[142]
  169. 2050 [142]
  170. 10000 dv[178][194](186):[159]15,dv,15,"s0:b.games of ls":[160]15:[148]"b.games of ls",dv:[128]
  171. 40000 [129]i[178]0[164]21:[151]828[170]i,8[170]i:[130]
  172. 40010 [139]dv[179]8[176]dv[177]29[176]dv[178]8[167]40030
  173. 40020 a[178][194](828):b[178][194](828[170]dv[171]8):[151]828,b:[151]828[170]dv[171]8,a
  174. 40030 a$[178]"hello connect":[129]j[178]8[164]29:i[178][194](828[170]j[171]8):[139]i[178]14[167][130]
  175. 40040 [160]2:[159]2,i,2:[160]2:[139]st[167]40060
  176. 40050 [160]15:[159]15,i,15,"r0:"[170]a$[170]"="[170]a$:[132]15,er:[160]15:[139]er[178]63[167]40070
  177. 40060 [130]:[153]"load":[151]53272,23:[151]186,8:[128]
  178. 40070 q$[178][199](34):[151]646,[194](53281):[153]"load":[151]53272,23
  179. 40080 [153]"loadp(NULL)2048,0:p(NULL)44,8:p(NULL)43,1:p(NULL)56,160:p(NULL)55,0:clr:l(NULL)"q$a$q$","i
  180. 40090 [153]"run:":[151]631,13:[151]632,13:[151]198,2:[128]
  181. 60000 [153]"load":z$[178]" print#                                      ":[151]214,10:[153]
  182. 60010 [153]" listfrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefre":[129]i[178]0[164]9:[153]z$:[130]
  183. 60020 [153]" pokeposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposprint#"
  184. 60030 z$(0)[178]"(NULL)left$val chr$atn(NULL)val(NULL) (NULL)asc (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL)":z$(1)[178]"atn (NULL)ribute from (NULL)alt left$arned"
  185. 60040 z$(2)[178]"(len) 1995 by (NULL)oftdisk (NULL)ublishing"[170][199](13)
  186. 60050 z$(3)[178]"(NULL)his program is the copyrighted work
  187. 60060 z$(4)="of [211][207][198][212][196][201][211][203] [208][213][194][204][201][211][200][201][206][199].  [201]t is not"
  188. 60070 z$(5)="shareware or in the public domain."
  189. 60080 z$(6)="[212]o subscribe call 1-800-594-3370."
  190. 60090 poke214,12:print
  191. 60100 fori=0to6:printtab(20-(len(z$(i))/2))""z$(i):next:return
  192.